<template>
  <w-log :remove-url="removeUrl" :list-url="listUrl" :options="searchOptions">
    <template v-slot="scope" class="cell">
      <a-row :gutter="16">
        <a-col span="8">请求类型: {{ scope.item.reqType }}</a-col>
        <a-col span="8">请求路径: {{ scope.item.reqUrl }}</a-col>
        <a-col span="8">时间: {{ scope.item.date | DateFormat }}</a-col>
      </a-row>
      <a-row :gutter="16">
        <a-col span="8" class="w-text-warp">大小: {{ scope.item.size }}</a-col>
        <a-col span="8">状态码: {{ scope.item.statusCode }}</a-col>
        <a-col span="8" class="w-text-warp">
          响应时间: {{ scope.item.timeLength }}
        </a-col>
      </a-row>
    </template>
  </w-log>
</template>

<script>
import WLog from '../../../../components/admin/logs'
import { Admin } from '@/config/api'
export default {
  name: 'AdminLogsServerRrocess',
  layout: 'admin',
  components: {
    WLog
  },
  data () {
    return {
      listUrl: Admin.logs.server.processList,
      removeUrl: Admin.logs.server.processDelete,
      searchOptions: [
        {
          title: '请求类型',
          key: 'reqType'
        },
        {
          title: '请求地址',
          key: 'reqUrl'
        }
      ]
    }
  },
  head () {
    return {
      title: '日志-服务端-流程'
    }
  }
}
</script>

<style scoped></style>
